<?php
/* vim: set ts=4 sw=4: */
/*
* @package
* @filename	   common.php
* @author	   Garfield <garfield0601@gmail.com>
* @copyright 	
* @version 
* @since  	   2008-6-29 23:06:21
* 
*/
require_once("SmartPHP/Loader.php");
SmartPHP_Loader::loadClass("SmartPHP_Db");
SmartPHP_Loader::loadClass("SmartPHP_Db_Table");
SmartPHP_Loader::loadClass("SmartPHP_Pool");

$dbConfig = array("host"=>"localhost" , "port"=>3306 , "username"=>"root" , "password"=>"root");
$db = SmartPHP_Db::factory($dbConfig);

SmartPHP_Pool::set("db" , $db);
SmartPHP_Db_Table::setDefaultAdapter($db);
unset($db);
